import os, glob, json


annotation_file_path = "/home/smartgis/workspace/data/EVE/det_train_annotation.json"

with open(annotation_file_path, "r") as f:
    annotation_json = json.load(f)
for category in annotation_json["categories"]:
    print("{}:\"{}\",".format(category["id"], category["name"]))
print(annotation_json["categories"])
 